import request from "../utils/request"

export interface LoginState {
	tel: string
}

export const login = (data: LoginState) =>  {
	return request({
		url: '/api/tel/signup',
		method: 'post',
		data
	})
}


export const fetchList = () => {
	return request({
		url: '/api/list'
	})
}

export const postDetail = (data: { id: string }) => {
	return request({
		url: '/api/detail',
		method: 'post',
		data
	})
}